package com.smh.a07ThreadDemo7;

import com.smh.a06ThreadDemo6.MyThread2;

public class ThreadMethod3 {
    public static void main(String[] args) {

        MyThread1 myThread1 = new MyThread1();
        MyThread2 myThread2 = new MyThread2();

        myThread1.setName("女神");
        myThread2.setName("备胎");


        myThread1.start();
        myThread2.start();


    }
}
